import React from 'react';
import Link from 'umi/link';
import { BLACK_ENUM } from './enum';
import { unitsSeparate, unitsPrice, locationStr } from '@/utils';
import _ from 'lodash';

const syncStatus = ['未同步', '同步成功', '同步失败'];

export const tableList2 = [
  {
    title: 'sku编码',
    key: 'skuCode',
    width: 180,
  },
  {
    title: '名称',
    key: 'skuName',
  },
  {
    title: '同步结果',
    key: 'status',
    render: (text: number) => {
      return syncStatus[text];
    },
  },

  {
    title: '最后操作人',
    key: 'editorName',
  },
  {
    title: '最后同步时间',
    key: 'operateTime',
    type: 'datetime',
    width: 200,
  },
];
